<?php
class XDBXAProxy extends XObject implements XProxy{
	protected $manager = null;
	protected $resource = null;
	
	public function __construct(XDBXA $manager, XDBXAResource $resource){
		$this->manager = $manager;
		$this->resource = $resource;
	}
	
	/** 
	 * @return XDBXAResource
	 */		
	public function getDelegate(){
		return $this->resource;
	}
	
	/** 
	 * @return mixed
	 */		
	public function __call($method, $args){
		return $this->manager->invokeArgs($this->resource, $method, $args);
  	}
}
?>